package com.itheima.service.mongo;

import com.itheima.domain.mongo.Movement;
import com.itheima.domain.vo.PageBeanVo;

public interface MovementService {
    //保存我的动态
    void saveMovement(Movement movement);

    //查询我的动态
    PageBeanVo findMovementByUserId(Integer page, Integer pageSize, Long userId);

    //查询朋友圈数据 好友发布的动态
    PageBeanVo findFriendMovement(Integer page, Integer pageSize, Long loginUserId);

    //查询推荐动态
    PageBeanVo findRecommendMovement(Integer page, Integer pageSize, Long loginUserId);

    //根据动态id返回动态的对象
    Movement findMovementByMovementId(String movementId);
    //查询分页数据
    PageBeanVo findByMessages(Long uid, Integer intState, Integer page, Integer pagesize);
}
